package com.reader.cms.entity.sys;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.reader.core.validator.group.AddGroup;
import com.reader.core.validator.group.UpdateGroup;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
*
* @@description 
* @author        gumenghao
* @date          2018-10-25
*/
@TableName("reader_content_classify")
public class ReaderContentClassify extends Model<ReaderContentClassify> {

private static final long serialVersionUID = 1L;


/**
* ID
*/


@TableId(value="id", type= IdType.AUTO)
private Integer id;

/**
* 内容分类名称
*/

@NotBlank(message="文章分类名称不能为空！！！", groups = {AddGroup.class, UpdateGroup.class})
@Size(max = 4,message = "文章分类名称长度不能超过4！！！", groups = {AddGroup.class, UpdateGroup.class})
private String name;



private Integer enable;


@TableField("del_flag")

private Integer delFlag;


@TableField("insert_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date insertDt;


@TableField("insert_user_id")

private Integer insertUserId;


@TableField("updt_dt")

@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updtDt;


@TableField("updt_user_id")

private Integer updtUserId;


public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Integer getEnable() {
return enable;
}

public void setEnable(Integer enable) {
this.enable = enable;
}

public Integer getDelFlag() {
return delFlag;
}

public void setDelFlag(Integer delFlag) {
this.delFlag = delFlag;
}

public Date getInsertDt() {
return insertDt;
}

public void setInsertDt(Date insertDt) {
this.insertDt = insertDt;
}

public Integer getInsertUserId() {
return insertUserId;
}

public void setInsertUserId(Integer insertUserId) {
this.insertUserId = insertUserId;
}

public Date getUpdtDt() {
return updtDt;
}

public void setUpdtDt(Date updtDt) {
this.updtDt = updtDt;
}

public Integer getUpdtUserId() {
return updtUserId;
}

public void setUpdtUserId(Integer updtUserId) {
this.updtUserId = updtUserId;
}

@Override
protected Serializable pkVal() {
return this.id;
}

@Override
public String toString() {
return "ReaderContentClassify{" +
	", id=" + id +
	", name=" + name +
	", enable=" + enable +
	", delFlag=" + delFlag +
	", insertDt=" + insertDt +
	", insertUserId=" + insertUserId +
	", updtDt=" + updtDt +
	", updtUserId=" + updtUserId +
"}";
}
}